<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8"/>
        <title>EasyUI&nbsp;Demo&nbsp;-&nbsp;Resizable</title>
        <link rel="shortcut icon" href="../../assets/image/favicon.ico"/>
        <script type="text/javascript" src="../../assets/js/common.js"></script>
        <link rel="stylesheet" type="text/css" href="../../assets/libs/easyui/themes/default/easyui.css">
        <link rel="stylesheet" type="text/css" href="../../assets/libs/easyui/themes/icon.css">
        <script type="text/javascript" src="../../assets/libs/easyui/jquery.min.js"></script>
        <script type="text/javascript" src="../../assets/libs/easyui/jquery.easyui.min.js"></script>
    </head>
    <body>
        <h1>Resizable&nbsp;-&nbsp;Base&nbsp;基础组件</h1>
        <fieldset>
            <legend>使用案例</legend>
            <p>使用标签创建可变大小的窗口。</p>
            <div id="rr" class="easyui-resizable" data-options="maxWidth:800,maxHeight:600" style="width:100px;height:100px;border:1px solid #ccc;"></div>
            <p>使用Javascript创建可变大小的窗口。</p>
            <div id="rr1" style="width:100px;height:100px;border:1px solid #ccc;"></div>
        </fieldset>
    </body>
    <script type="text/javascript">
        $('#rr1').resizable({
            maxWidth: 800,
            maxHeight: 600,
            onStartResize: function(e) {
                console.log("开始调整大小：", e);
            },
            onResize: function(e) {
                console.log("改变大小中：", e);
            },
            onStopResize: function(e) {
                console.log("停止改变大小：", e);
            }
        });
    </script>
</html>